package ar.edu.itba.pod.legajo47573.messages;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.jgroups.Address;

public class OwnerBackupSignalList implements Serializable {

	private List<OwnerBackupSignal> ownedSignals;
	private List<OwnerBackupSignal> backupedSignals;
	
	public OwnerBackupSignalList(){
		this.ownedSignals = new ArrayList<OwnerBackupSignal>();
		this.backupedSignals = new ArrayList<OwnerBackupSignal>();
	}
	
	public void addOwn(OwnerBackupSignal signal){
		ownedSignals.add(signal);
	}
	
	public void addBackup(OwnerBackupSignal signal){
		backupedSignals.add(signal);
	}
	
	public List<OwnerBackupSignal> getBackupedSignals() {
		return backupedSignals;
	}

	public List<OwnerBackupSignal> getOwnedSignals() {
		return ownedSignals;
	}
	
	public void setBackupedSignals(List<OwnerBackupSignal> backupedSignals) {
		this.backupedSignals = backupedSignals;
	}
	
	public void setOwnedSignals(List<OwnerBackupSignal> ownedSignals) {
		this.ownedSignals = ownedSignals;
	}

}
